package com.ocom.company.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ocom.common.entity.card.EntityXfMerchPayInfo;
import com.ocom.common.enums.DataSourceEnum;
import com.ocom.common.enums.MasterSlaveEnum;
import com.ocom.common.vo.company.MerchPayCountVo;
import com.ocom.company.dao.IDaoXfMerchPayInfo;
import com.ocom.company.service.XfMerchPayInfoService;
import com.ocom.mysql.aspect.DataSourceAspect;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class XfMerchPayInfoServiceImpl extends ServiceImpl<IDaoXfMerchPayInfo, EntityXfMerchPayInfo> implements XfMerchPayInfoService {

	@Autowired
	IDaoXfMerchPayInfo iDaoXfMerchPayInfo;

	@Override
	@DataSourceAspect(type = DataSourceEnum.PART_DB,isMaster = MasterSlaveEnum.MASTER)
	public List<MerchPayCountVo> selectMerchPayCount(Long companyId) {
		return iDaoXfMerchPayInfo.selectMerchPayCount();
	}





}
